let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n26,
                    i =
                    (this && this.__extends) ||
                    ((_n26 = function n(t, e) {
                            return (_n26 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n26(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        }),
                    r =
                    (this && this.__decorate) ||
                    function(t, e, o, n) {
                        var i,
                            r = arguments.length,
                            a =
                            r < 3 ?
                            e :
                            null === n ?
                            (n = Object.getOwnPropertyDescriptor(e, o)) :
                            n;
                        if (
                            'object' ==
                            (typeof Reflect === 'undefined' ?
                                'undefined' :
                                typeof(Reflect)) &&
                            'function' == typeof Reflect.decorate
                        )
                            a = Reflect.decorate(t, e, o, n);
                        else
                            for (var s = t.length - 1; s >= 0; s--) {
                                (i = t[s]) &&
                                (a = (r < 3 ? i(a) : r > 3 ? i(e, o, a) : i(e, o)) || a);
                            }
                        return r > 3 && a && Object.defineProperty(e, o, a), a;
                    };
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.AttackAct = void 0);
                var a = t('AbsAction'),
                    s = t('AbsActor'),
                    c = t('GongJian'),
                    l = t('BattleWeapon'),
                    u = t('MofaQiu'),
                    h = t('Skill112'),
                    p = cc._decorator,
                    f = p.ccclass,
                    d =
                    (p.property,
                        (function(t) {
                            function e() {
                                return (null !== t && t.apply(this, arguments)) || this;
                            }
                            return (
                                i(e, t),
                                (e.prototype.init = function() {
                                    this._type = a.ActionType.Block;
                                }),
                                (e.prototype.onStart = function(t) {
                                    return (
                                        void 0 === t && (t = null),
                                        this.setActorState(s.ActorState.Attack),
                                        this.playAnim('attack', 1),
                                        (this._target = t),
                                        (this._attackTime = 0.3),
                                        this.castSkill(),
                                        !0
                                    );
                                }),
                                (e.prototype.castSkill = function() {
                                    var t = this.actor;
                                    if (t.card) {
                                        var e = t.card;
                                        if (109 == e.cardId)
                                            for (
                                                var o = e.param[0], n = 0; n < t.scene.actors.length && o > 0; n++
                                            ) {
                                                (r = t.scene.actors[n]) &&
                                                r.isValid &&
                                                    r.hp > 0 &&
                                                    r.camp != t.camp &&
                                                    r.state != s.ActorState.Appear &&
                                                    null == r.getBuff(e.cardId) &&
                                                    (r.addBuff(e), o--);
                                            }
                                        if (112 == e.cardId) {
                                            var i = 0.01 * e.param[0];
                                            if (Math.random() < i)
                                                for (n = 0; n < t.scene.actors.length; n++) {
                                                    var r;
                                                    (r = t.scene.actors[n]) &&
                                                    r.isValid &&
                                                        r.camp != t.camp &&
                                                        new h.Skill112(t, r);
                                                }
                                        }
                                    }
                                }),
                                (e.prototype.onUpdate = function(e) {
                                    if (
                                        (t.prototype.onUpdate.call(this, e),
                                            this._attackTime > 0 && (this._attackTime -= e) <= 0)
                                    ) {
                                        var o = this.actor;
                                        if (
                                            (this._target.hp <= 0 &&
                                                (this._target = o.scene.getTarget(o)),
                                                this._target)
                                        ) {
                                            var n = l.BattleWeapon.get(o);
                                            null == n ?
                                                (n =
                                                    o.type == s.ActorType.Soldier ?
                                                    2 == o.info.type ?
                                                    new u.MofaQiu(o, this._target) :
                                                    3 == o.info.type ?
                                                    new c.GongJian(o, this._target) :
                                                    new l.BattleWeapon(o, this._target) :
                                                    new l.BattleWeapon(o, this._target)) :
                                                n.init(o, this._target),
                                                o.scene.addEffect(n);
                                        }
                                    }
                                }),
                                (e.prototype.animLoopCompleteHandler = function() {
                                    this.finish();
                                }),
                                (e.prototype.onFinish = function() {
                                    var t = this.actor;
                                    t.stopAction(), t.idle();
                                }),
                                r([f('AttackAct')], e)
                            );
                        })(a.AbsAction));
                (o.AttackAct = d), console.log("end");
            module.exports =  e.exports;